package com.jzo2o.api.trade;

import com.jzo2o.api.trade.dto.request.PayReqDTO;
import com.jzo2o.api.trade.dto.response.PayResDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author itcast
 */
@FeignClient(contextId = "jzo2o-trade", value = "jzo2o-trade", path = "/trade")
public interface TradingApi {

    @PostMapping("/inner/pay")
    PayResDTO toPay(@RequestBody PayReqDTO payReqDTO);
}
